package cn.exrick.xboot.modules.transport.baoxian.dto;

import lombok.Data;

import javax.xml.bind.annotation.*;

@Data
@XmlRootElement(name = "PolicyList")
@XmlAccessorType(XmlAccessType.FIELD)
public class PolicyQueryRequest {
    @XmlAttribute(name = "username")
    private String username;

    @XmlElement(name = "Policy")
    private Policy policy = new Policy();

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Policy {
        @XmlAttribute(name = "BusinessLogic")
        private String businessLogic = "QueryFreightPolicy"; // 固定值

        @XmlElement(name = "PolicyNo")
        private String policyNo; // 投保单号

        @XmlElement(name = "MD5Key")
        private String md5Key;
    }
}
